package com.desgin.factory_mod.ab_fac;

import com.desgin.factory_mod.ab_fac.fac.DefaultPayFactory;

/**
 * Created by zhaoshuai on 2017/4/10.
 */
public class Main {

    public static void main(String[] args){
    DefaultPayFactory defaultPayFactory = new DefaultPayFactory();
        System.out.println(defaultPayFactory.createAliPay().pay());
        System.out.println(defaultPayFactory.createWxPay().pay());
    }
}
